Skip to main content

clickV

Type

function

Summary

Returns the vertical position of the most recent mouse click.

Syntax

the clickV
clickV()

Description

Use the clickV function to find out where the user last clicked.

The returned value is the vertical distance in pixels from the top edge of the clicked stack to the location of the click. (Use the clickStack function to identify which stack was clicked.)

The click location is the position of the mouse pointer when the user pressed the mouse button, not when the user released the button. In particular, inside a mouseDown handler, the clickV returns the position of the mouse as it was when the mouseDown action occurred.

This function is equal to item 2 of the clickLoc function.

Examples

the clickV
if the clickV > the bottom of stack "window" then beep

object: stack

control structure: function

function: mouseV, clickH

glossary: return

keyword: integer

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?